Skip to content

updateImage: Don't assign DisplayName if it doesn't exist #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sameehj
Copy link

@sameehj sameehj commented Aug 5, 2021

This commit resolves issue #283

@jackparmer jackparmer requested review from xarico10 and VolKa79 August 5, 2021 18:23
@VolKa79
Copy link

VolKa79 commented Aug 5, 2021

Still getting:
Unrecognized field name "DisplayName".
We had trouble parsing the image object.
This trace might not render properly.

@xarico10
Copy link
Contributor

xarico10 commented Aug 5, 2021

Still getting the same output as the issue example (just as @VolKa79).

Copy link
Contributor

@xarico10 xarico10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

";" not needed after an if statement (line 95). Also, that conditional is pointless.

if ~isempty(image_data.DisplayName)
    obj.data{imageIndex}.name = image_data.DisplayName;
else
    obj.data{imageIndex}.name = image_data.DisplayName;

The exact same command (obj.data{imageIndex}.name = image_data.DisplayName;) is being executed whether image_data.DisplayName is empty or not.

@harshpurwar
Copy link
Contributor

Looking at the changes, it seems like the current master already resolved this issue, isn't it?

@sameehj
Copy link
Author

sameehj commented Aug 8, 2021

I can see that this commit is no longer necessary since this was resolved in master here 59481e8

@sameehj sameehj closed this Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants